import request from '@/utils/request'

//查找员工id
export function findMyUserid(userid) {
  return request({
    url: `/sn/doctor/patients/${userid}`,
    method: 'get'
  })
}

//根据医生id查找患者
export function findPatientByDoctorId() {
  return request({
    url: `/sn/doctor/userid`,
    method: 'get'
  })
}




// 查询工作台列表
export function listManagement(query) {
  return request({
    url: '/sn/management/list',
    method: 'get',
    params: query
  })
}

// 查询工作台详细
export function getManagement(registrationId) {
  return request({
    url: '/sn/management/' + registrationId,
    method: 'get'
  })
}

// 新增工作台
export function addManagement(data) {
  return request({
    url: '/sn/management',
    method: 'post',
    data: data
  })
}

// 修改工作台
export function updateManagement(data) {
  return request({
    url: '/sn/management',
    method: 'put',
    data: data
  })
}

// 删除工作台
export function delManagement(registrationId) {
  return request({
    url: '/sn/management/' + registrationId,
    method: 'delete'
  })
}
